package cn.ac.jaas.isc.vegetable.common.swagger.annotation;

import cn.ac.jaas.isc.vegetable.common.swagger.config.GatewaySwaggerAutoConfiguration;
import cn.ac.jaas.isc.vegetable.common.swagger.config.SwaggerAutoConfiguration;
import cn.ac.jaas.isc.vegetable.common.swagger.support.SwaggerProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.lang.annotation.*;

/**
 * @author 张高昌
 * @date 2022/4/13 21:39
 * @description: 开启vegetable swagger
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableSwagger2
@EnableConfigurationProperties(SwaggerProperties.class)
@Import({SwaggerAutoConfiguration.class, GatewaySwaggerAutoConfiguration.class})
public @interface EnableVegetableSwagger2 {
}
